/**
 * 
 */
package ptvv.sample;

import java.util.Calendar;

import ptvv.*;

/**
 * @author dkz
 * 
 */
public class Wander extends DefaultAutomata {
	protected OutputPort outputPort2;
	// variables needed for computation
	String message;

	public Wander(DefaultAutomata destination, Thread dest) {
		this.setName("Move");
		outputPort = new OutputPort(destination, dest);
		// outputPort = new OutputPort(destination, dest);

	}

	public void starting() throws InterruptedException {

		eventQueue.take(); // waiting for start
		// System.out.println(item);

	}

	public void ready() throws InterruptedException {
		// message = inputPort.take();
	}

	public void running() throws InterruptedException {

	}

	public void suspended() throws InterruptedException {

	}

	public void end() {
		outputPort.destAutomata.addInput("10");
		outputPort.destAutomata.addEvent("START");
		repeatBool = true;
	}

	public void dead() {
		// this.internalState = InternalStates.Start;

	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {

	}

}
